<template>
	<section>
		<headers txt="我的资产"></headers>

		<ul class="mu20 plr30">
			<li class="flex_column centre asset_li1 huefff">
				<h1 class="sz36">购车基金</h1>
				<p class="sz70">{{asset.Asset_Points? Number(asset.Asset_Points).toFixed(2):'...'}}</p>
				<div class="flex_centre">

					<router-link :to="{path:'/ownAll/trade',query:{type:'point'}}" class="asset_a1">转换</router-link>
					<router-link :to="{path:'/ownAll/water',query:{type:'point'}}" class="asset_a2 ml50">
						流水
					</router-link>
				</div>
			</li>
			<li class="flex_column centre mu30 asset_li2 huefff">
				<h1>可提现金额</h1>
				<p class="sz70">{{asset.Asset_Fund?Number(asset.Asset_Fund).toFixed(2):'...'}}</p>
				<div class="flex_centre">
					<router-link :to="{path:'/ownAll/trade',query:{type:'cash'}}" class="asset_a3">提现</router-link>
					<router-link :to="{path:'/ownAll/water',query:{type:'cash'}}" class="asset_a4 ml50">
						流水
					</router-link>
				</div>
			</li>
		</ul>
	</section>
</template>

<script>
	import { Toast } from 'mint-ui';
	export default {
		data() {
			return {
				asset: {}
			}
		},
		created() {
			let v = this;
			v.$http.get("/WorkMembersAsset/V1.0/GetMembersAsset", {
				params: {
					MembersID: sessionStorage.MembersID
				}
			}).then((res) => {
				if(!res.data.Return_ID) {
					v.asset = res.data.Return_Data;
					sessionStorage.asset = JSON.stringify(res.data.Return_Data); 
				} else {
					Toast(res.data.Return_Mess)
				}
			})
		}
	}
</script>

<style>

</style>